#ifndef TIMER_H
#define TIMER_H

#include <QTimer>
#include <QDebug>
#include "apiTimer.h"

class Timer : public apiTimer
{
	Q_OBJECT

public:
	Timer(QObject *parent = 0);
	~Timer();

	void					init();
	apiTimer				*getApi();

	void					restart();
	virtual void			start();
	virtual void			stop();

private:
	QTimer					*_timer;
	int						_interval;

public slots:
	void					update();
};

#endif // TIMER_H
